package com.java.dao;

import java.util.List;

import com.java.pojo.ComDept;
import com.java.pojo.ComEmp;

public interface IDeptDAO {
 public List<ComDept> getDeptListByPage(int start,int offset);
 public int getDeptNum();
 public ComDept getDeptById(int id);
 public String deleteDept(int id);
 public String updateDept(ComDept cd);
 public ComDept getDeptByName(String dname);
 public ComEmp getEmpById(int eid);
 public List<ComDept> getDeptByEmp(String name);
 public ComEmp getEmpByName(String name);
 public String addDept(ComDept cd,String manager);
 public List<ComEmp> getAllEmpin();
 public List<ComDept> getAllDept();
}
